package ooday02;
/**动物类测试*/
public class AnimalTest {
    public static void main(String[] args) {
        Dog dog=new Dog("小白",3,"白");
        dog.eat();
        dog.drink();
        dog.lookHome();
        dog.swim();

        Chick chick=new Chick("小鸡",1,"黄");
        chick.eat();
        chick.drink();
        chick.layEggs();

        Fish fish=new Fish("小鱼",1,"红");
        fish.eat();
        fish.drink();
        fish.swim();
    }
}
